package com.dz.Incubator.service;

import com.dz.Incubator.entity.SysUserRoleEntity;
import com.dz.Incubator.config.Pagination;

import java.util.List;

public interface SysUserRoleService {

    /**
     * 保存当前对象,并返回主键ID
     * @param sysUserRoleEntity SysUserRoleEntity
     * @return SysUserRoleEntity
     */
    SysUserRoleEntity insert(SysUserRoleEntity sysUserRoleEntity);

    /**
     * 修改当前对象
     * @param SysUserRoleEntity sysUserRoleEntity
     * @return SysUserRoleEntity
     */
    SysUserRoleEntity update(SysUserRoleEntity sysUserRoleEntity);

    /**
     * 根据主键Id删除数据
     * @param id 主键
     * @return 成功失败  1 为成功  0 为失败
     */
    Integer delete(Long id);

    /**
     * 根据Id获取当前对象
     * @param id 主键ID
     * @return SysUserRoleEntity
     */
    SysUserRoleEntity get(Long id);
    
    /**
     * 根据Ids集合获取当前对象
     * @param ids 主键ID集合
     * @return List<SysUserRoleEntity>
     */
    List<SysUserRoleEntity> find(Long[] ids);
    
     /**
     * 获取当前对象全部列表
     * @return List<SysUserRoleEntity>
     */
    List<SysUserRoleEntity> findAll();

    /**
     * 分页获取SysUserRoleEntity列表
     * @param pagination Pagination<SysUserRoleEntity>
     * @return Pagination<SysUserRoleEntity> 
     */
    Pagination findByPagination(Pagination pagination);
    
    /**
     * 根据列表集合添加当前对象
     * @param List<SysUserRoleEntity> 
     * @return List<SysUserRoleEntity>
     */
    List<SysUserRoleEntity> insertBatch(List<SysUserRoleEntity> list);
    
    /**
     * 根据列表集合获修改前对象
     * @param List<SysUserRoleEntity> 
     * @return List<SysUserRoleEntity>
     */
    List<SysUserRoleEntity> updateBatch(List<SysUserRoleEntity> list);
    
    /**
     * 根据Ids集合批量删除当前对象
     * @param ids 主键ID集合
     * @return List<Long>
     */
    List<Long> deleteBatch(Long[] ids);

}